package file;

import java.io.File;

public class MkdirDemo {
    public static void main(String[] args) {
        File dir=new File("./a/b/c/d/e/f/g/h/i/j/k/l/m/n");
        if(dir.exists()){
            System.out.println("该文件已存在");;
        }else{
            //dir.mkdir();
            dir.mkdirs();
            System.out.println("目录已创建！");
        }
        dir.getName();
        System.out.println(dir);

        long length=dir.length();
        System.out.println(length);
    }
}
